//
//  ZOrderMallBannerCell.m
//  DistributorAB
//
//  Created by LZY on 2019/10/21.
//  Copyright © 2019 主事丫环. All rights reserved.
//

#import "ZOrderMallBannerCell.h"

@interface ZOrderMallBannerCell ()
@property (nonatomic, strong) UIImageView *ivBanner;
@end

@implementation ZOrderMallBannerCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupViewAction];
    }
    return self;
}
#pragma mark - 界面布局
- (void)setupViewAction{
    self.ivBanner = [UIImageView new];
    self.ivBanner.frame = self.contentView.bounds;
    self.ivBanner.contentMode = UIViewContentModeScaleAspectFill;
    self.ivBanner.layer.cornerRadius = 11;
    self.ivBanner.layer.masksToBounds = YES;
    [self.contentView addSubview:self.ivBanner];
}
#pragma mark - 数据更新
- (void)setModel:(ZOrderMallBannerModel *)model{
    if (model) {
        _model = model;
        [HFTools imageViewUpdateWithUrl:model.pic_url withImageView:self.ivBanner withPlaceholderImage:@""];
    }
}
@end
